import Mock from 'mockjs';

let object = [{
		key: "/md/all",
		method: "get",
		data: () => {
			return Mock.mock({
				'STATUS': "SUCCESS",
				'DATA': [{
						"storeid": "123456",
						"name": "门店1",
					},
					{
						"storeid": "123457",
						"name": "门店2",
					}
				]
			});
		}
	},

	{
		key: "/md/info",
		method: "get",
		data: Mock.mock({
			'STATUS': "SUCCESS",
			'DATA': {
				"storeid|4": /[A-Z][a-z][0-9][0-9]/,
				"name": "@csentence(5)",	//门店名称
				"mddz": "@county(true)",	//门店地址
				"fzr": "@cname",	//负责人
				"lxdh": "15483214136",	//联系电话
				"cover": "@image('200x200', '#4A7BF7')",
					"imgs":[
						"",
						""
					],//封面
				"jd": "31.269689", //经度
				"wd": "121.305338",	//纬度
				"ms": "哇，好白~",	//门店描述
				'actflg|1': [true, false], //店铺状态
			
				'appid|2':/[A-Z][a-z][0-9][0-9]/,
				'secretkey|2':/[A-Z][a-z][0-9][0-9]/,
				'nid|2':/[A-Z][a-z][0-9][0-9]/,
				'zsxlh|2':/[A-Z][a-z][0-9][0-9]/,
				'zfsy|2':/[A-Z][a-z][0-9][0-9]/,
				'zfv3apikey|2':/[A-Z][a-z][0-9][0-9]/,
				
				
				
				 
			}
		})
	},

	{
		key: "/md/page",
		method: "get",
		data: () => {
			return Mock.mock({
				'STATUS': "SUCCESS",
				'DATA': {
					'current': 0,
					'size': 10,
					'pages': 6,
					'total': 55,
					"records|10": [{
						"storeid|4": /[A-Z][a-z][0-9][0-9]/,
						"name": "@csentence(5)",
						"mddz": "@county(true)",
						"fzr": "@cname",
						"lxdh": "15483214136",
						"cover": "@image('200x200', '#4A7BF7')",
						"imgs":[
							"",
							""
						],
						"jd": "31.269689",
						"wd": "121.305338",
						"ms": "哇，好白~",
						'actflg|1': [true, false], //店铺状态

						'appid|2':/[A-Z][a-z][0-9][0-9]/,
						'secretkey|2':/[A-Z][a-z][0-9][0-9]/,
						'nid|2':/[A-Z][a-z][0-9][0-9]/,
						'zsxlh|2':/[A-Z][a-z][0-9][0-9]/,
						'zfsy|2':/[A-Z][a-z][0-9][0-9]/,
						'zfv3apikey|2':/[A-Z][a-z][0-9][0-9]/,
						'':"",
						'':"",
						/* "sheng": "code",
						"shengmc": "黑龙江省",
						"shi": "code",
						"shimc": "哈尔滨市",
						"qu": "code",
						"qumc": "道里区", */
					}]
				}
			});
		}
	},
	{
		key: "/md/info",
		method: "delete",
		data: function() {
			return Mock.mock({
				'STATUS': "SUCCESS",
				'DATA': "",
			});
		}
	},
	{
		key: "/md/info",
		method: "put",
		data: function() {
			return Mock.mock({
				'STATUS': "SUCCESS",
				'DATA': "",
			});
		}
	},
	{
		key: "/md/info",
		method: "post",
		data: function() {
			return Mock.mock({
				'STATUS': "SUCCESS",
				'DATA': "",
			});
		}
	},
];

export default object;